<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8"/>
	<meta name="keywords" content="invisible characters, invisibles, control characters, space, tab, line ending"/>
	<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
	<script defer src="../../Shared/js/toc.js"></script>
	
	<title>Show invisible characters in CotEditor on Mac</title>
</head>

<body>

<h1>Show invisible characters in CotEditor on Mac</h1>

<p>With the Invisible Characters feature, you can show formatting characters—such as spaces, tabs, and line endings—in your document using alternative symbols so that you can see where they appear.</p>


<section>
<h2>Change the visibility of invisible characters</h2>

<h3>Temporarily change for the current document</h3>

<p>In the CotEditor app <img class="appicon" srcset="../../Shared/gfx/icon_32x32@2x.png 2x" alt=""/> on your Mac, you can switch the visibility of invisible characters in the current document by performing one of the following:</p>

<ul>
	<li><p>Choose Format &gt; Show/Hide Invisible Characters.</p></li>
	<li><p>Click the Invisibles button in the window toolbar (The Invisibles button can be added by customizing the toolbar).</p></li>
	<li><p>Click the Invisibles button in the Touch Bar (The Invisibles button can be added by customizing the Touch Bar).</p></li>
</ul>

<p>These changes don’t override the default visibility setting.</p>


<h3>Change the default setting</h3>

<p>You can change the default visibility in the <a href="settings_window.html">Window</a> settings by selecting the “Invisible characters” checkbox in the Show section.</p>


<h3>Print invisible characters on printing</h3>

<p>You can choose whether to print invisible characters in the Print dialog.</p>
</section>


<section>
<h2>Change the types of invisible characters to show</h2>

<p>In the <a href="settings_window.html">Window</a> settings, you can specify which types of invisible characters appear when the feature is enabled. The available types correspond to the following characters:</p>

<table>
	<style>
		table ul { list-style-type: none; padding-left: 0; }
	</style>
	
	<colgroup>
		<col/>
		<col/>
		<col style="width:20em"/>
		<col/>
	</colgroup>
	
	<thead>
		<tr><th>Label</th><th><abbr title="Symbol">Sym.</abbr></th><th>Characters (code point)</th><th>Description</th></tr>
	</thead>
	
	<tbody>
		<tr>
			<th>Line ending</th>
			<td><span class="invisible">↩</span></td>
			<td><ul>
				<li>U+000A <small>(LINE FEED)</small></li>
				<li>U+000D <small>(CARRIAGE RETURN)</small></li>
				<li>U+0085 <small>(NEW LINE)</small></li>
				<li>U+2028 <small>(LINE SEPARATOR)</small></li>
				<li>U+2029 <small>(PARAGRAPH SEPARATOR)</small></li>
			</ul></td>
			<td>Control characters that indicate a line break. CRLF line endings (a combination of <code>U+000D</code> and <code>U+000A</code>) are drawn as a single symbol.</td>
		</tr>
		
		<tr>
			<th>Tab</th>
			<td><span class="invisible">→</span></td>
			<td><ul>
				<li>U+0009 <small>(HORIZONTAL TABULATION)</small></li>
			</ul></td>
			<td>A kind of whitespace character with a flexible width sending the next character to a certain position. Commonly used for indentation in programming.</td>
		</tr>
		
		<tr>
			<th>Space</th>
			<td><span class="invisible">·</span></td>
			<td><ul>
				<li>U+0020 <small>(SPACE)</small></li>
			</ul></td>
			<td>The standard space character.</td>
		</tr>
		
		<tr>
			<th rowspan="3">Other<br/>whitespace</th>
			<td><span class="invisible">·̂</span></td>
			<td><ul>
				<li>U+00A0 <small>(NO-BREAK SPACE)</small></li>
				<li>U+2007 <small>(FIGURE SPACE)</small></li>
				<li>U+202F <small>(NARROW NO-BREAK SPACE)</small></li>
			</ul></td>
			<td>Space characters that prevent line breaks before or after them.</td>
		</tr>
		
		<tr>
			<td><span class="invisible">□</span></td>
			<td><ul>
				<li>U+3000 <small>(IDEOGRAPHIC SPACE)</small></li>
			</ul></td>
			<td>A space character commonly used in Japanese writing. Also known as “full-width space.”</td>
		</tr>
		
		<tr>
			<td><span class="invisible">⹀</span></td>
			<td><ul>
				<li>U+2000..U+200A <small>(various spaces)</small></li>
				<li>U+205F <small>(MEDIUM MATHEMATICAL SPACE)</small></li>
			</ul></td>
			<td>Whitespace characters with various widths and uses. They correspond to all remaining characters in Unicode category Zs (space separator).</td>
		</tr>
		
		<tr>
			<th>Other<br/>control characters</th>
			<td><span class="invisible">�</span></td>
			<td><ul>
				<li>U+0000..U+001F <small>(C0)</small></li>
				<li>U+007F <small>(DELETE)</small></li>
				<li>U+0080..U+009F <small>(C1)</small></li>
				<li>U+200B <small>(ZERO WIDTH SPACE)</small></li>
				<li>U+200C <small>(ZERO WIDTH NON-JOINER)</small></li>
				<li>U+2060 <small>(WORD JOINER)</small></li>
				<li>U+FEFF <small>(ZERO WIDTH NO-BREAK SPACE)</small></li>
				<li>U+061C, U+200E..U+200F, U+202A..U+202E, U+2066..U+206F <small>(bidi-text controls)</small></li>
				<li>U+2061..U+2065 <small>(invisible operators)</small></li>
				<li>U+FFF9..U+FFFB <small>(interlinear annotations)</small></li>
			</ul></td>
			<td>Special characters that don’t appear as visible glyphs but control or format the document. They correspond to all Unicode category Cc (control) and some of Cf (format).</td>
		</tr>
	</tbody>
</table>
</section>


<section id="cf">
<h2>See also</h2>
<ul>
	<li><a href="settings_window.html">Change Window settings in CotEditor on Mac</a></li>
</ul>
</section>

</body>
</html>
